﻿@{
    Layout = null;
}


<div id="grid" toolbar="#search">
</div>

<div id="search" style="padding-top: 3px;">  
    <a href="#" id="lbtnAdd" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="BusinessManage.DataGridAdd();">新增</a>|
    <a href="#" id="lbtnEdit" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="BusinessManage.DataGridEdit();">修改</a>|
    <a href="#" id="lbtnDel" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="BusinessManage.DataGridDel();">删除</a>|
    分类&nbsp;<input id="cParent" class="easyui-combobox" data-options="    
        valueField: 'ID',    
        textField: 'TypeName',
        url: '@Url.Content("~/Main/GetParentType")', 
        onLoadSuccess: function(rec){
            if(rec){
                $('#cParent').combobox('setValue',rec[0].ID);
            }
        },
        onSelect: function(rec){
            var url = '@Url.Content("~/Main/GetChildTypeAddAll?id=")'+rec.ID;
            $('#cChildren').combobox('clear');
            $('#cChildren').combobox('reload', url);
        }" />
    <input id="cChildren" class="easyui-combobox" data-options="
        valueField:'ID',
        textField:'TypeName',
        onLoadSuccess: function(rec){
            if(rec.length>0){
                $('#cChildren').combobox('setValue',rec[0].ID);
            }
        }" />  
    客户名称&nbsp;<input id="cName" class="easyui-textbox" data-options="iconCls:'icon-search'">
    <input type="hidden" name="authID_DXYW" id="authID_DXYW" value="@Session["AuthID"].ToString()" />
    @if (Session["AuthID"].ToString() == "2")
    {
        <span>显示全部&nbsp;</span><input type="checkbox" name="showAll" id="showAll" />
    }
    <a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="BusinessManage.DataGridSearch();">查询</a>
    @if (Session["AuthID"].ToString() == "2")
    {
      <a href="#" class="easyui-linkbutton" iconCls="icon-tip" plain="true" onclick="BusinessManage.DataGridCheck();">审核</a>
      <a href="#" class="easyui-linkbutton" iconCls="icon-tip" plain="true" onclick="BusinessManage.DataGridCharging();">续交</a>
      <a href="#" class="easyui-linkbutton" iconCls="icon-tip" plain="true" onclick="BusinessManage.DataGridBill();">补开发票</a>
    }
</div>  

<div id="dlg" style="width: 900px; height: 480px;"></div>
<div id="dlgEdit" style="width: 900px; height: 480px;"></div>
<div id="dlgCheck" style="width: 900px; height: 480px;"></div>
<div id="dlgCharging" style="width: 900px; height: 480px;"></div>
<div id="dlgView" style="width: 900px; height: 480px;"></div>
<div id="dlgBill"></div>

<div id="dlg_btn">
<a href="#" class="easyui-linkbutton" onclick="BusinessManage.AddFormSaveData()">保存</a>
<a href="#" class="easyui-linkbutton" onclick="BusinessManage.AddFormCancle()">取消</a>
<a href="#" class="easyui-linkbutton" onclick="BusinessManage.DLGClose()">关闭</a>
</div>
<script type="text/javascript" src="@Url.Content("~/Scripts/dxyw.js")"></script>